Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

fix(deps): update dependency express to v5#1888

Merged
eliandoran merged 7 commits intodevelopfrom
renovate/express-5.x
Jun 7, 2025
Merged

fix(deps): update dependency express to v5#1888
eliandoran merged 7 commits intodevelopfrom
renovate/express-5.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 9, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
express (source) ^4.21.2 -> ^5.0.0 age adoption passing confidence
express (source) 4.21.2 -> 5.1.0 age adoption passing confidence
@types/express (source) ^4.17.21 -> ^5.0.0 age adoption passing confidence
@types/express (source) 5.0.1 -> 5.0.3 age adoption passing confidence

Release Notes

expressjs/express (express)

v5.1.0

Compare Source

========================

  • Add support for Uint8Array in res.send()
  • Add support for ETag option in res.sendFile()
  • Add support for multiple links with the same rel in res.links()
  • Add funding field to package.json
  • perf: use loop for acceptParams
  • refactor: prefix built-in node module imports
  • deps: remove setprototypeof
  • deps: remove safe-buffer
  • deps: remove utils-merge
  • deps: remove methods
  • deps: remove depd
  • deps: debug@^4.4.0
  • deps: body-parser@^2.2.0
  • deps: router@^2.2.0
  • deps: content-type@^1.0.5
  • deps: finalhandler@^2.1.0
  • deps: qs@^6.14.0
  • deps: server-static@2.2.0
  • deps: type-is@2.0.1

v5.0.1

Compare Source

==========

v5.0.0

Compare Source

=========================

  • remove:
    • path-is-absolute dependency - use path.isAbsolute instead
  • breaking:
    • res.status() accepts only integers, and input must be greater than 99 and less than 1000
      • will throw a RangeError: Invalid status code: ${code}. Status code must be greater than 99 and less than 1000. for inputs outside this range
      • will throw a TypeError: Invalid status code: ${code}. Status code must be an integer. for non integer inputs
    • deps: send@1.0.0
    • res.redirect('back') and res.location('back') is no longer a supported magic string, explicitly use req.get('Referrer') || '/'.
  • change:
    • res.clearCookie will ignore user provided maxAge and expires options
  • deps: cookie-signature@^1.2.1
  • deps: debug@4.3.6
  • deps: merge-descriptors@^2.0.0
  • deps: serve-static@^2.1.0
  • deps: qs@6.13.0
  • deps: accepts@^2.0.0
  • deps: mime-types@^3.0.0
    • application/javascript => text/javascript
  • deps: type-is@^2.0.0
  • deps: content-disposition@^1.0.0
  • deps: finalhandler@^2.0.0
  • deps: fresh@^2.0.0
  • deps: body-parser@^2.0.1
  • deps: send@^1.1.0

Configuration

📅 Schedule: Branch creation - "before 3am" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added dependencies PRs or issues relating to dependencies renovate labels May 9, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2025

Folder/File Previous size New size Difference
/upload/TriliumNextNotes-Server-1888-merge-linux-x64.tar.xz 67.75MB +67.75MB (+100.00%)
TOTAL +67.75MB

@renovate renovate Bot force-pushed the renovate/express-5.x branch 3 times, most recently from fadbe2e to 22b7afc Compare May 10, 2025 10:42
@eliandoran eliandoran marked this pull request as draft May 10, 2025 15:26
@renovate renovate Bot force-pushed the renovate/express-5.x branch 9 times, most recently from 0e4891f to 26e318d Compare May 20, 2025 21:05
@renovate renovate Bot force-pushed the renovate/express-5.x branch 6 times, most recently from 9191c0a to 9daa0dc Compare May 27, 2025 19:31
@renovate renovate Bot force-pushed the renovate/express-5.x branch 3 times, most recently from ce3495c to a60610a Compare May 31, 2025 09:18
@eliandoran eliandoran added this to the v0.95.0 milestone Jun 1, 2025
@renovate renovate Bot force-pushed the renovate/express-5.x branch 2 times, most recently from ea882a6 to 2093366 Compare June 4, 2025 07:05
@eliandoran eliandoran removed this from the v0.94.1 milestone Jun 4, 2025
@renovate renovate Bot force-pushed the renovate/express-5.x branch 15 times, most recently from e567ee5 to e9adbbd Compare June 7, 2025 11:07
@renovate renovate Bot force-pushed the renovate/express-5.x branch from e9adbbd to 086bd10 Compare June 7, 2025 11:15
pano9000 added 2 commits June 7, 2025 14:21
…value*"

the updateOption function that handles the req.param is just destructuring `const { name, value } = req.params;` and does nothing else with the path or any params.
The remaining parts of the wildcard (which can be accessed via req.param[0]) are just ignored here.

even with express v4, this would *always* just take and process the very first part of the path, in the exact wildcard's place, e.g.

`/api/options/locale/de` and
`/api/options/locale/de/test/whatever`
would *both* end up destructuring "value" from req.param as "de" (because it is in the exact place of the 'value' wildcard)

in express v5 the wildcard behaviour changes -> here req.param.value would return an array with the paths split into separate string.

but since the code previously regarded only the first part of the path -> we can just get rid of the wildcard and use a named route param

the only thing to keep in mind: if a request with more than one "value" is received, (e.g. `/api/options/locale/de/test/whatever`) -> since we don't have the wildcard anymore  -> this will turn to a 404.
IMHO that is actually desirable here though
@eliandoran
Copy link
Copy Markdown
Contributor

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Jun 7, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@eliandoran eliandoran marked this pull request as ready for review June 7, 2025 17:17
@eliandoran eliandoran merged commit cedf6cc into develop Jun 7, 2025
10 checks passed
@eliandoran eliandoran deleted the renovate/express-5.x branch June 7, 2025 17:17
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies PRs or issues relating to dependencies renovate size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants